home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Random2.0 / RandomPlot / RandomEngine.h < prev    next >
Text File  |  1995-06-12  |  475b  |  40 lines

  1. //
  2. // RandomEngine
  3. //
  4. // An abstract Objective-C class for random number
  5. // generator engines.
  6. //
  7. // Copyright (C) 1992 Contemporary Design Studios. All rights reserved.
  8. //
  9.  
  10.  
  11. #import <objc/Object.h>
  12.  
  13.  
  14. //
  15. // Types:
  16. //
  17.  
  18. typedef unsigned long    ulong;
  19. typedef unsigned short    ushort;
  20. typedef unsigned char    uchar;
  21.  
  22.  
  23. @interface RandomEngine : Object
  24.  
  25.  
  26. {
  27. }
  28.  
  29.  
  30. + (int)unit;                // Return the unit of generation (# of BYTES).
  31.  
  32. - makeRandom:(uchar *)storage;
  33.  
  34.  
  35. @end
  36.  
  37.  
  38. //
  39. // End of file.
  40. //